const hre = require("hardhat");

async function main() {
  const [deployer] = await hre.ethers.getSigners();
  
  console.log("Checking balance for address:", deployer.address);
  
  const balance = await hre.ethers.provider.getBalance(deployer.address);
  console.log("BNB balance:", hre.ethers.formatEther(balance), "BNB");
  
  // 检查买家地址余额
  const buyerAddress = "0x694B96b770f607Da56289824fcD18818cd479F29";
  const buyerBalance = await hre.ethers.provider.getBalance(buyerAddress);
  console.log("Buyer BNB balance:", hre.ethers.formatEther(buyerBalance), "BNB");
}

main()
  .then(() => process.exit(0))
  .catch((error) => {
    console.error(error);
    process.exit(1);
  });
